// Main.cs created with MonoDevelop
// User: dream at 15:14 15.05.2008
//
using System;

namespace CheckAndMate
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			Game gm = new Game(true);
			Print(gm);
			//Console.WriteLine("Hello World!");
		}
		
		public static void Print(Game gm)
		{
			for (int r = 8; r >= 1; r--)
			{
				foreach (File f in Enum.GetValues(typeof(File)))
				{
					Piece p = gm.GetPiece(f, r);
					string result = "";
					switch(p.Type)
					{
					case PieceType.None:
						result = "o";
						break;
					case PieceType.Pawn:
						result = "p";
						break;
					case PieceType.Knight:
						result = "n";
						break;
					case PieceType.Bishop:
						result = "b";
						break;
					case PieceType.Rook:
						result = "r";
						break;
					case PieceType.Queen:
						result = "q";
						break;
					case PieceType.King:
						result = "k";
						break;
					}
					if (p.Color == PieceColor.White && p.Type != PieceType.None)
						result = result.ToUpper();
					
					Console.Write(result + " ");
				}
				Console.WriteLine();
			}
		}
	}
}